package com.sinkingsquare.web.core;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.mvc.Controller;

import com.sinkingsquare.business.BusinessService;

public abstract class AbstractBaseController implements Controller {

	protected Log log;
	
	protected BusinessService businessService;
	
	public BusinessService getBusinessService() {
		return businessService;
	}

	@Resource
	public final void setBusinessService(BusinessService businessService) {
		this.businessService = businessService;
	}

	public AbstractBaseController() {
		log = LogFactory.getLog(this.getClass());
		log.info("Init controller: "+this.getClass().getName());
	}
	
}
